﻿using Library.Common.Model;
using Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Menu;
using System.Threading.Tasks;

namespace Synthesize.BaseSet.ServiceInterface.UseCase.Authority
{

    /// <summary>
    /// 菜单操作接口类
    /// </summary>
    public interface IMenuService
    {

        /// <summary>
        /// 创建菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<bool>> Create(CreateMenuInput input);

        /// <summary>
        /// 显示或隐藏菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<bool>> ForbidOrEnable(ForbidOrEnableInput input);

        /// <summary>
        /// 更新菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<bool>> Update(UpdateMenuInput input);

        /// <summary>
        /// 删除菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<bool>> DeleteById(SingleDeleteInput input);

        /// <summary>
        /// 移动菜单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<bool>> MoveMenu(MoveMenuInput input);
    }
}
